<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>用户列表</title>
  <link rel="stylesheet" type="text/css" href="../assets/lib/layui/css/layui.css">
</head>

<body>
  <!-- 内容区一 标题区 start -->
  <div class="layui-card-header">用户列表</div>
  <!-- 内容区一 标题区 end -->

  <!-- 内容区二 表格区 start -->
  <div class="layui-card-body">
    <table class="layui-table">
      <colgroup>
        <col width="5%">
        <col width="17%">
        <col width="17%">
        <col width="17%">
        <col width="20%">
      </colgroup>
      <thead>
        <tr>
          <th>ID</th>
          <th>账号名称</th>
          <th>昵称</th>
          <th>邮箱</th>
          <th>操作</th>
        </tr>
      </thead>
      <tbody>
        <!-- <tr>
          <td>2</td>
          <td>test</td>
          <td>dadad</td>
          <td>djlkajglfa</td>
          <td>
            <button class="layui-btn layui-btn-xs">编辑</button>
            <button class="layui-btn layui-btn-xs layui-btn-danger">删除</button>
            <button class="layui-btn layui-btn-xs layui-btn-normal">重置密码</button>
          </td>
        </tr>
        <tr>
          <td>2</td>
          <td>test</td>
          <td>dadad</td>
          <td>djlkajglfa</td>
          <td>
            <button class="layui-btn layui-btn-xs">编辑</button>
            <button class="layui-btn layui-btn-xs layui-btn-danger">删除</button>
            <button class="layui-btn layui-btn-xs layui-btn-normal">重置密码</button>
          </td>
        </tr>
        <tr>
          <td>2</td>
          <td>test</td>
          <td>dadad</td>
          <td>djlkajglfa</td>
          <td>
            <button class="layui-btn layui-btn-xs">编辑</button>
            <button class="layui-btn layui-btn-xs layui-btn-danger">删除</button>
            <button class="layui-btn layui-btn-xs layui-btn-normal">重置密码</button>
          </td>
        </tr>
        <tr>
          <td>2</td>
          <td>test</td>
          <td>dadad</td>
          <td>djlkajglfa</td>
          <td>
            <button class="layui-btn layui-btn-xs">编辑</button>
            <button class="layui-btn layui-btn-xs layui-btn-danger">删除</button>
            <button class="layui-btn layui-btn-xs layui-btn-normal">重置密码</button>
          </td>
        </tr> -->
      </tbody>
    </table>
    <!-- 分页区 start -->
    <div id="page"></div>
    <!-- 分页区 end -->
  </div>
  <!-- 内容区二 表格区 end -->

  <!-- 添加的重置密码模板 start -->
  <script type="text/html" id="tpl-reset">
    <!-- tpl: 取自 template 模板 -->
  <!-- 表单去layui官网复制 -->
  <form class="fmreset layui-form" id="add-form" style="margin: 15px 30px 0 0">
    <!-- 第一项：密码 -->
    <div class="layui-form-item">
      <label class="layui-form-label">密码</label>
      <div class="layui-input-block">
        <input type="password" name="name" required lay-verify="required|len" placeholder="请输入新密码" autocomplete="off"
          class="pwd layui-input">
      </div>
    </div>
    <!-- 第二项：确认密码 -->
    <div class="layui-form-item">
      <label class="layui-form-label">确认密码</label>
      <div class="layui-input-block">
        <input type="password" name="alias" required lay-verify="required|len|same" placeholder="请重复输入新密码"
          autocomplete="off" class="layui-input">
      </div>
    </div>
    <!-- 第三项：按钮（这个按钮去表单那复制） -->
    <div class="layui-form-item">
      <div class="layui-input-block">
        <input type="hidden" name="id">
        <button class="layui-btn" lay-submit lay-filter="formDemo">提交</button>
        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
      </div>
    </div>
  </form>
  </script>
  <!-- 添加的重置密码模板 end -->


  <!-- 添加的编辑用户模板 start -->
  <script type="text/html" id="tpl-edit">
    <!-- tpl: 取自 template 模板 -->
  <!-- 表单去layui官网复制 -->
  <form lay-filter="edit" class="fmedit layui-form" id="add-form" style="margin: 15px 30px 0 0">
    <!-- 第一项：用户名 -->
    <div class="layui-form-item">
      <label class="layui-form-label">用户名</label>
      <div class="layui-input-block">
        <input type="text" name="username" required lay-verify="required" placeholder="请输入用户名" autocomplete="off"
          class="pwd layui-input">
      </div>
    </div>
    <!-- 第二项：昵称 -->
    <div class="layui-form-item">
      <label class="layui-form-label">昵称</label>
      <div class="layui-input-block">
        <input type="text" name="nickname" required lay-verify="required" placeholder="请输入昵称" autocomplete="off"
          class="layui-input">
      </div>
    </div>
    <!-- 第三项：邮箱 -->
    <div class="layui-form-item">
      <label class="layui-form-label">邮箱</label>
      <div class="layui-input-block">
        <input type="email" name="email" required lay-verify="required" placeholder="请输入邮箱" autocomplete="off"
          class="layui-input">
      </div>
    </div>
    <!-- 第四项：按钮（这个按钮去表单那复制） -->
    <div class="layui-form-item">
      <div class="layui-input-block">
        <input type="hidden" name="id">
        <button class="layui-btn" lay-submit lay-filter="formDemo">确认修改</button>
        <button type="reset" class="reset layui-btn layui-btn-primary">重置</button>
      </div>
    </div>
  </form>
  </script>
  <!-- 添加的编辑用户模板 end -->



  <script type="text/javascript" src="../assets/lib/jquery.js"></script>
  <script type="text/javascript" src="../assets/js/common.js"></script>
  <script type="text/javascript" src="../assets/lib/layui/layui.all.js"></script>
  <script type="text/javascript" src="../assets/js/user/user.js"></script>
</body>

</html>